//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "tyr_artillery\fn_checkPlayer.sqf"
#include <core_macros.h>

TRACE_1("Start",_this);
TMFPROFILERSTART;

private ["_player","_assigned","_result"];
PARAMS_1(_player);
_result = false;
if (!isNil "_player" && {!isnull _player} && {alive _player}) then {
	_assigned = assignedItems _player;
	TRACE_1("Assigned Items",_assigned);
	if (count _assigned > 0 && {({(_x isKindOf "ItemRadio") || (_x == "ItemRadio")} count _assigned) > 0}) then {
		_result = true;
	};
};
TRACE_1("End",_result);
TMFPROFILERSTOP;
_result;